All Questions
23 questions
0votes
1answer
1kviews
Getting Page Content Using Shortcode
I have a menu page that contains dishes (food) for the week and I am trying to display that by inserting the shortcode on home page. Nothing shows. I'm not sure how to use return and get the content. ...
0votes
1answer
658views
How to reload the shortcode content when the database is changing
I use Wordpress plugin: snippets to show some data in database. Everything is OK, however, when I change the content in the database. After that I refresh many time in the page. And the content is not ...
0votes
0answers
45views
How to use multiple (or array) values in $content of shortcode?
I have a shortcode that fetches some values, first_name, last_name and email from a remote database. I'm trying to write a shortcode that will allow me to print 2 or more of those values within output ...
1vote
1answer
714views
Two different inner shortcode under shortcodes or multiple nesting of inner shortcodes
<div class="eternal"> <div class="one"> [shortcode]Some text 1[/shortcode] [shortcode]Some text 2[/shortcode] [shortcode]Some text 3[/shortcode] [shortcode]...
0votes
1answer
4kviews
How To Render Shortcode In AJAX Response?
Problem I have a one-page layout that displays an accordion looking WP menu of my page titles. I'm using AJAX to load and display the corresponding page's WP content into a div thats get's inserted ...
0votes
2answers
361views
Update same content in multiple posts at once?
Is there anyway to update same data in multiple posts in WP? For eg, my post 1 includes content 'abcabc' along with other content. Same goes with my post 2 - includes content 'abcabc' along with other ...
3votes
2answers
3kviews
Multiple content areas per page
I’m having a complex content issue. Each page can have multiple sections (unknown number), each section can have multiple containers, each container can have multiple content blocks (either 1, 2 or 3)....
3votes
2answers
3kviews
Search content for shortcodes and get parameters
In content I can have multiple shortcodes like [book id="1"] [book id="14" page="243"] Is there any help method with which I can search the content for that shortcode and get its parameters? I need ...
0votes
2answers
1kviews
Get post content from outside the loop with plugin shortcode usability
This is great for showing just the raw content... Get post content from outside the loop But i'd also like to apply shortcodes from various plugins to my content to affect the content. What would I ...
0votes
3answers
2kviews
Create dynamic content from one WP page to multiple other pages
I want to create dynamic content that is taken from a specific paragraph from one page and writes to a paragraph on multiple pages that feature that same content. I am new to PHP and not sure how to ...
0votes
1answer
116views
Problem in outputting shortcode
This is my 2nd question about shortcode as I'm learning shortcode. Here is my code: add_shortcode('work-shortcode', 'work_shortcode'); function work_shortcode() { $return_string .= '<div class=...
0votes
1answer
392views
Problem in shortcode outputting content
I`m trying to make a shortcode that output the a div containing content from Custom Post type . I'm able to output the content but content does not output within div . the shortcode output the div and ...
0votes
1answer
727views
Overwriting a Shortcode
I have a theme that extends the Visual Composer plugin with a slider on the front page. The slider will show five testimonials from five different customers. I want to add the featured image of each ...
36votes
8answers
72kviews
Stop WordPress automatically adding <br> tags to post content
Is there a way to stop WordPress from automatically inserting <br> tags when adding returns in the WordPress text editor. I would like for it to behave more like a code editor where I can ...
2votes
2answers
3kviews
Adding short codes from a page's content on header and hiding the same from page's content
I have created a page and added the following shortcode from wp-orbit-slider [orbit-slider category="test"] I want the contents of [orbit-slider category="test"] be displayed on the header part,...